#include "Label.h"
//necessary
#include "memory-tools.h"
#include "main-tools.h"
#include <string.h>


Plabel initLabel(char* _name,LabelClassType _type){
	Plabel result=(Plabel)mallocMemory(sizeof(Label),"LabelElement.c:initLabelElement:1");
	result->name=_name;
	result->type=_type;
	return result;
}


void freeLabel(Plabel pobj){
	//freeString(pobj->name);
	freeMemory(sizeof(Label),pobj);
}


void printLabel(FILE* f,Plabel pobj){
	fprintf(f,"%s (",pobj->name);
	printLabelClassType(f,pobj->type);
	fprintf(f,")");
}

